#---------------------------------------------------------------------------
# 20130304 build archive lib of infrastructure
#---------------------------------------------------------------------------

include ../../../config.mk

MODULE = libinfrastr.a
TARGET = ${TARGET_LIB}/${MODULE}

#define pass to source file
TOOL_NAME = testMakeBin

HEADERS = -I$(GCC_HEADER) -I. 

#LIBS = -L$(GCC_LIB) -L$(SRC_LIB) -L. -lpthread -lstdc++ 

OBJS =	kconfiguration_c.o

all : ${TARGET}

${TARGET} : $(OBJS)
	ar cr $(TARGET) $(OBJS)
	cp $(TARGET) .
	cp kConfiguration_c.h $(SRC_HEADER)

.cpp.o :
	$(GCC) $(CFLAGS) -c -Wno-deprecated -DTOOL_NAME=\"$(TOOL_NAME)\" $< -o $@ $(HEADERS)

clean:	
	rm -f $(OBJS) $(MODULE)
